package com.haidechizi.i18n.code.generator.common.message.utils;

import com.github.stuxuhai.jpinyin.ChineseHelper;
import com.haidechizi.i18n.code.generator.common.message.constants.LanguageKeyConstants;

public class TranslateUtils {

    public static String translate(String data, String language) {
        if (LanguageKeyConstants.ZH_CN.equals(language)) {
            return ChineseHelper.convertToSimplifiedChinese(data);
        }
        return ChineseHelper.convertToTraditionalChinese(data);
    }
}
